<?php

$x=123;
print("----\n");
echo "123\n";
echo "789\n";

$domain="softnext.com.cn";
$n=200;
$m=100;

$myfile=fopen("user.txt","w+") or die("Unable to open file!");
for ($x=0;$x<$n;$x++)
{
        $group="Group".$x;
        for ($y=0;$y<$m;$y++)
        {
                $user="user".$x."-".$y;
                $email=$user."@".$domain;
                $txt=$user.",".$group.",".$email."\n";
                fwrite($myfile,$txt);
                echo "$txt\n";
        }
}

fclose($myfile);

?>